/**
 * Project Name:wxmarket
 * File Name:UserController.java
 * Package Name:com.ruiyin.service
 * Date:2016-5-25下午01:59:00
 * Copyright (c) 2016, 江苏瑞银科技有限公司 All Rights Reserved.
 *
*/

package com.ruiyin.service;

import com.jfinal.plugin.activerecord.Page;
import com.ruiyin.bean.SysUser;

/**
 * ClassName:UserController <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2016-5-25 下午01:59:00 <br/>
 * @author   昕昕
 * @version  
 * @see 	 
 */
public class UserService {
	
	//查询所有的用户信息
	
	public Page<SysUser> paginate(int pageNumber, int pageSize) {
		return  SysUser.dao.paginate(pageNumber, pageSize, "select a.* ,b.organname", " from sys_user a ,organ  b where a.organcode = b.organcode ");
		
	}
	
	

}

